@import "utilities";
html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  line-height: 1.6;
  font-size: 14px;
}
@media (max-width: 374px) {
  html {font-size: 12px}
}
html, body {
  user-select: none;
  height: 100%;
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}
::-webkit-input-placeholder {
  font-family: $font-default;
}
body {
  font-family: $font-default;
  background-color: $color-grey-bg;
  color: $font-color;
}
button, input, select, textarea {
  -webkit-appearance: none;
  font-family: inherit;
  font-size: inherit;
  outline: 0 !important;
  margin: 0;
}
button:not([disabled]), a:not([disables]) {
  cursor: pointer
}
a {
  &:visited {
    color: $link-color;
  }
  &[href]:hover {
    color: $link-active-color;
  }
}
em, b, i {
  font-weight: normal;
  font-style: normal;
}
hr {
  border: 0;
  height: 1px;
  background: #ececec;
}
small {
  line-height: 1.3;
  font-size: 80%;
}
img {
  vertical-align: middle;
  border-style: none;
  max-width: 100%;
}
iframe {
  height: 100%;
  width: 100%;
  border: 0;
}
.fixed-footer {
  padding-bottom: $footer-height + .5rem;
  footer {
    position: fixed;
    z-index: 10;
    bottom: 0;
    right: 0;
    left: 0;
  }
}
.scroll-wrapper {
  -webkit-overflow-scrolling: touch;
  overflow: auto;
}
.dialog-flex {
  display: flex;
  flex-direction: column;
}
.dialog-lg {
  max-width: 90%;
  width: 90%;
}
/* order screenshot */
.screenshot-extra {
  display: none;
}
.screenshot {
  .fixed-header {
    padding-top: 0 !important;
  }
  header, footer {
    display: none !important;
  }

  .screenshot-extra {
    display: flex;
    background: url(../img/bg.png) repeat-y;
    padding: 1rem;
    color: #fff;
    .name {
      background: url(../img/order/name.png) no-repeat center;
      background-size: contain;
      height: 2.5rem;
    }
    .text {
      background: url(../img/order/text.png) no-repeat center;
      background-size: contain;
      height: 2rem;
    }
    img {
      margin-bottom: .5rem;
      max-height: 8rem;
    }
  }
}
@keyframes dots {
  0% { opacity: .4; transform: scale(1) }
  50% { opacity: 1; transform: scale(1.2) }
  100% { opacity: .4; transform: scale(1) }
}
$dot-size: 6px;
.loading-dots {
  text-align: center;
  .dot {
    animation: dots 1.2s infinite ease-in-out;
    background: #fff;
    display: inline-block;
    border-radius: $dot-size;
    height: $dot-size;
    width: $dot-size;

    &:nth-child(2) { animation-delay: .4s }
    &:nth-child(3) { animation-delay: .8s }
  }
}
